package user

import "time"

type User struct {
	ID          uint64 `gorm:"primary_key"`
	PlatformID  uint64
	ThirdUserID uint64
	Nickname    string `gorm:"type:varchar(30);"`
	PortraitUri string `gorm:"type:varchar(200);"`
	Status      bool
	LeavingTime uint64    `gorm:"default:'600'"`
	CreatedAt   time.Time `gorm:"type:timestamp;"`
	UpdatedAt   time.Time `gorm:"type:timestamp;"`
}

type AuthToken struct {
	ID        uint64
	UserID    uint64
	Token     string
	CreatedAt time.Time `gorm:"type:timestamp;"`
	UpdatedAt time.Time `gorm:"type:timestamp;"`
}

//type Blacklist struct {
//	ID        uint `gorm:"primary_key"`
//	SourceID  uint64
//	TargetID  uint64
//	CreatedAt time.Time `gorm:"type:timestamp;"`
//}

type Remark struct {
	ID        uint `gorm:"primary_key"`
	SourceID  uint64
	TargetID  uint64
	Name      string
	CreatedAt time.Time `gorm:"type:timestamp;"`
	UpdatedAt time.Time `gorm:"type:timestamp;"`
}
